//
//  ArticleTableViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/4/9.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "ArticleTableViewCell.h"

@implementation ArticleTableViewCell

-(void)dealloc
{
    [_timeLab release];
    [_countLab release];
    [_timeLab release];
    [super dealloc];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLab = [[UILabel alloc] init];
        //self.titleLab.backgroundColor = [UIColor yellowColor];
        self.titleLab.font = [UIFont systemFontOfSize:16];
        [self.contentView addSubview:self.titleLab];
        [_titleLab release];
        
        self.countLab = [[UILabel alloc] init];
        //self.countLab.backgroundColor = [UIColor yellowColor];
        self.countLab.font = [UIFont systemFontOfSize:12];
        self.timeLab.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.countLab];
        [_countLab release];
        
        self.timeLab = [[UILabel alloc] init];
        //self.timeLab.backgroundColor = [UIColor yellowColor];
        self.timeLab.textColor = [UIColor grayColor];
        self.timeLab.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.timeLab];
        [_timeLab release];
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLab.frame = CGRectMake(10, 30, 300, 30);
    self.countLab.frame = CGRectMake(10, 80, 100, 20);
    self.timeLab.frame = CGRectMake(BOUNDS_WIDTH - 100 - 10 , 80, 100, 20);
    
    
}




- (void)awakeFromNib {
    // Initialization code
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
